body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

.game-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    max-width: 800px;
    width: 100%;
}

.game-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.score-container, .game-mode, .difficulty, .speed-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-container div {
    font-size: 1.1em;
    color: #4CAF50;
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    background: #000;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #45a049;
    transform: scale(1.05);
}

select, input[type="range"] {
    padding: 5px;
    background: #333;
    color: white;
    border: 1px solid #4CAF50;
    border-radius: 4px;
}

select {
    width: 100%;
    cursor: pointer;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.achievements-panel, .powerups-panel {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.achievements-panel h3, .powerups-panel h3 {
    color: #4CAF50;
    margin-top: 0;
}

#achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.achievement {
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.achievement.unlocked {
    opacity: 1;
    background: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.achievement-name {
    display: block;
    font-weight: bold;
    color: #4CAF50;
}

.achievement-desc {
    display: block;
    font-size: 0.9em;
    color: #888;
}

#active-powerups {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.powerup {
    padding: 5px 10px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header {
        grid-template-columns: 1fr;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
}
